package cn.itcast.user.client;

import cn.itcast.user.pojo.User;

/**
 * feign的客户端的fallback实现
 * @author 虎哥
 */
public class UserClientFallback implements UserClient{
    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("用户查询出现异常！");
        return user;
    }
}
